<?php

class Nimblecms_Controller_Plugin_Htmlcompressor extends Zend_Controller_Plugin_Abstract {

	public function dispatchLoopShutdown() {
		$response = $this->getResponse();
		$body     = $response->getBody();
		$body     = Nimblecms_Htmlcompressor::compress($body);
		$response->setBody($body);
	}
}